package com.workerhelping.enums;

import lombok.Data;

public enum StatusEnum {
    NO(0, "否"),

    YES(1, "是");

    private final String status;

    StatusEnum(Integer code, String status) {
        this.status = status;
    }

    public static String getStatusName(Integer code) {
        if (code == 0)
            return NO.status;
        else if (code == 1)
            return YES.status;
        else return null;
    }
}
